﻿namespace AnyOffice.Model
{
    using System;

    public class DiaryData
    {
        protected DateTime _addDate = DateTime.Now;
        protected object _attachmentId;
        protected string _content = string.Empty;
        protected int _diaryId = -1;
        protected int _type;
        protected string _userId = string.Empty;

        public DateTime AddDate
        {
            get
            {
                return this._addDate;
            }
            set
            {
                this._addDate = value;
            }
        }

        public string AttachmentId
        {
            get
            {
                return (string) this._attachmentId;
            }
            set
            {
                this._attachmentId = value;
            }
        }

        public bool AttachmentIdIsNull
        {
            get
            {
                return (this._attachmentId == null);
            }
            set
            {
                if (value)
                {
                    this._attachmentId = null;
                }
            }
        }

        public string Content
        {
            get
            {
                return this._content;
            }
            set
            {
                this._content = value;
            }
        }

        public int DiaryId
        {
            get
            {
                return this._diaryId;
            }
            set
            {
                this._diaryId = value;
            }
        }

        public int Type
        {
            get
            {
                return this._type;
            }
            set
            {
                this._type = value;
            }
        }

        public string UserId
        {
            get
            {
                return this._userId;
            }
            set
            {
                this._userId = value;
            }
        }
    }
}

